package edu.uestc.canary.commons;

import java.util.Random;

public class StringUtils {
    /**
     * 生成验证码
     */
    public static String genericCode(int length){
        var random = new Random();
        String code = "";
        for(var i = 0; i < length; i++){
            code += random.nextInt(10);
        }
        return code;
    }
}
